Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows cfapi backend for vfs #2778

Merged
merged 9 commits into from
Dec 30, 2020
Merged

Windows cfapi backend for vfs #2778

merged 9 commits into from
Dec 30, 2020

Conversation

er-vin
Copy link
Member

@er-vin er-vin commented Dec 30, 2020

This introduce a test suite and a minimal backend for CfAPI support on Windows when the VFS is used. So far it seems to do the job all the way to implicit hydration. Some integration with the system could be improved (like status emblem on icons) but better keep this for later iterations on the feature, let's stabilize and QA what's in there.

Fix #2637
Fix #1951

Kevin Ottens added 9 commits December 30, 2020 09:44
For now this implements only the logic necessary to get a test suite
equivalent to the TestSyncVirtualFiles one to pass. It doesn't (yet)
honor request to fetch files from the system.

Signed-off-by: Kevin Ottens <[email protected]>
This reduces code duplication and opportunities of mistakes between the
test and the implementation.

Signed-off-by: Kevin Ottens <[email protected]>
Since we often checked the same file states to see if they were virtual,
non virtual or gone, let's factor this out. This way intent in tests is
clearer.

Signed-off-by: Kevin Ottens <[email protected]>
This comes with a test simulating an open request coming from another
process (although in our case it's really just a thread). The actual
hydration works as expected by cfapi, handling of encrypted files is for
now missing.

Signed-off-by: Kevin Ottens <[email protected]>
Otherwise this would attempt to download the file everytime we check the
direct editor for a given file which wouldn't be adequate. Would also
lead to a deadlock in our case since that would happen in the main
thread and implicit hydration is driven from there as well.

Signed-off-by: Kevin Ottens <[email protected]>
@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-2778-46a5bd6b253751db1a5db9f2603cd3724de4fb6a-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

Copy link
Contributor

@allexzander allexzander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok. Let's see how it goes during QA.

@er-vin er-vin merged commit c501eed into master Dec 30, 2020
@er-vin er-vin deleted the windows_cfapi_backend_for_vfs branch December 30, 2020 15:16
@ghost
Copy link

ghost commented Mar 18, 2021

@er-vin is there a beta version for windows for this feature so we can test ?

@FlexW
Copy link

FlexW commented Mar 18, 2021

@axheli It's enabled in the latest pre release. You can download it here:
https://github.com/nextcloud/desktop/releases/tag/v3.2.0-rc1

@ghost
Copy link

ghost commented Mar 19, 2021

@FlexW Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use cloud files API for virtual drive on Windows Release date Virtual Drive
4 participants